package com.nmes.naljava.entity;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Blob;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Account {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Long id;
    @Persistent private String title;
    @Persistent private String category;
    @Persistent private String content;
    @Persistent private String imageName;
    @Persistent private com.google.appengine.api.datastore.Blob imageObject;
    @Persistent private String writer;
    @Persistent private String rgstDate;
    @Persistent private String editDate;

    public String getRgstDate() {
		return rgstDate;
	}

	public void setRgstDate(String rgstDate) {
		this.rgstDate = rgstDate;
	}

	public String getEditDate() {
		return editDate;
	}

	public void setEditDate(String editDate) {
		this.editDate = editDate;
	}

	public String getImageName() {
		return imageName;
	}

	public void setImageName(String imageName) {
		this.imageName = imageName;
	}

	public Account()
	{
		this.title = null;
        this.category = null;
        this.content = null;
        this.imageName = null;
        this.imageObject = null;
        this.writer = null;
        this.rgstDate = null;
        this.editDate = null;
	}
	
	public Account(String title
			, String category
			, String content
			, String imageName
			,com.google.appengine.api.datastore.Blob imageObject
			,String writer
			,String rgstDate
			,String editDate
			)
    {
        this.title = title;
        this.category = category;
        this.content = content;
        this.imageName = imageName;
        this.imageObject = imageObject;
        this.writer = writer;
        this.rgstDate = rgstDate;
        this.editDate = editDate;
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}


	public com.google.appengine.api.datastore.Blob getImageObject() {
		return imageObject;
	}

	public void setImageObject(com.google.appengine.api.datastore.Blob imageObject) {
		this.imageObject = imageObject;
	}

	public String getWriter() {
		return writer;
	}

	public void setWriter(String writer) {
		this.writer = writer;
	}

    
}